fix up edit task view, refactor form helper