fix problems with displaying and logging notifications