modified application controller