added addNamespaces method to AdminController for languages and views