Fix applying predefined table styles and toggling their buttons