add control buttons and a modal for edit