added more methods to application controller