Add flip detect to button.