fix various front end redirection bugs