task edit controller structure