Separate application controller from main application methods