last formatting problem and added a back button