Refactor submit tab into own directive.