complete update of maingui to be based on oo pysketch