fixed edit button to repopulate form