remove button and add onResume to detect preference change