fixed lots of gui errors