Fixed build script
Fixed GUI bugs