got ajax working for messages