Angular app mainController changed