refactors views, lang, adds redirection