Solar prominence, solar flare, and magnetic storms. Influence of the sun's surface on the earth's magnetosphere