document notifications functionality