fix some gui issues