adds popup windows when clicking on messages