Finally added proper AJAX refresh.