edit and update actions added with tests