split menuCtrl from userCtrl and did some refactoring