big refactoring #10 : simplifying the _draw_new, _draw_select, _new, _dialog methods, among other things