make edit and delete functional