inject app into controller object