fixed a few gui bugs and added an On/Off feature