Added functional ajax. Can create a message without reloading the page.