fix main gui