added logic ajax request on dashboard.html