fixed redirection in settings page