if statement to home page