setbfree: build the GUI