if condition to home page