messages functionality completed
finalt touches to messages functionality