set instance variable in app controller