Added AJAX and JS to handle for non-page-refresh functionality