adding listener for message to user