add getNewMessage func and dynamic update of mail counter