move mainCtrl
check if already login
check websocket status before sending message