Move code showing save menu from session to gui