Renames views.
Passes views to the ajax requests.