added function to edit user story