initialize notification function