fix some gui alignment bugs