Fixed compiling
Fixed some gui stuff