pass app to controllers

r