(fix) using AJAX to improve UI responsiveness