how can electrons in the energy levels move within the atom?
if they gain energy by absorbing EM radiation - they move to a higher energy level , further from the nucleus
if they release EM radiation they move close to the nucleus
if one or more outer electrons leave the atom - the atom become a positive charged ion