added a reset button and fixed a few gui stuff