modified: setting app in controller