added AJAX  post to controller and JS files