adding no messages catch in template and unread count