changed messages functionality