Hide the pills when back button is pressed