set up fields and declarations in Kpanel, fixed createandshowgui