vibration and sound on notification; refactoring