Edited app controller