reducing complexity of application controller