(wip) set up custom directives for main layout