Impacts of ionospheric plasma on magnetic reconnection and Earth's magnetosphere dynamics