First implementation of the editing dialog. Now debugging and testing, some final features perhaps.