refactor task forms for nested routes