upgrade edit dialog. 
editing not work now...