modified the overlay button & fixed the compass activity for onPause() and onResume()