add presence notification function