Implement state for the undo button for the ceiling fan