updating main program and adding edit dialog