create method edit and update