correct mistakes on application controller