updated edit() method to allow POSTMAN data