Refactor form generation into directives
Navigate to resource after form submit