Add app and controller with at simple function