adding handler for messages