Enable/disable buttons
Restored UI events (mostly)