activity deals with back button appropriately