Added pause feature when home button is clicked