making sure cardviews get closed in back button is used