Adding main application controller