create angular controller mainCtrl