moved some code between Atm and MainMenu classes