edited edit task post function in taskmodel