need finish gui (main and dialog)