still working on the AJAX
it now works with only ajax