fixed bog where the preference buttons stoppped working
Merge pull request #81 from habdelra/fixed-bug-preference-button-stop-working-bug

fixed bug where the preference buttons stoppped working