renamed methods and returned promise from rendertemplate