Ionospheric structures and processes: their relation and feedback to the magnetosphere