add messages to ajax output.