Adding directives for maincontroller