init controller and promise in it