Added initial implementation of application controller