make edit button on view modal work