Keep button event handlers after resetting to default