added a key to set notification either trueor false