Removed multiple AJAX calls to improve loading time