Create settings page, fix redirects