reverted to functional example... something went wrong with injecting controllers