AJAX the tabs, send data from login to main view, added other controllers that were necessary