Only trigger sync when button is clicked