Fixed bug: sets loaded multiple times. Changed position of the button handler.