added funtionality to send messages to different users