app controller adjusted for user