It works. Now adding ajax. Cannot test in localhost