hide costs when clicking the back button