Implemented task update and destroy, still missing some js refactory...