changed redirects back to main page