Sync button state