add ajax with styling to messages