change bgcolor. Print log in onPause method