fixed some gui related stuff