Change how redirect to home page happens