some fixes to gui