separated directives from views