work on sub app controller