redirect to main page and integration with google