Ajax load messages and post messages