Bug #4741 : fixing pop-up notification display problems

- fixing also XSS flaws on the notification answer feature