make edit function work with acdc