Code organization insinde directives and controllers