-- move directives from controllers to application