Split main view into directives