Fix update task route and improve generic updates