Sort of working first pane + directive