some code tweaks
* simpler code
* now tooltip with unread mail count is working
* proper email id is passed
properly handle notification on multiple mails that arrive at the same time