Correctyl handles the messages

Now I only need to change the java script to understand the application