messages are working. needing to fix within ajax