reducing complexit of application controller