Added updating and edit