made changes to application controller