adds app controller