Added logic for when home button should be displayed