added functionality to update an entry