Separated ApplicationCtrl from MessageCtrl.