fix create and update button