notification changed to work with JSON