adding listener for screen unlock and checks if phone is unlocked