edit app controller