Editing data from a modal window