Many improvements, implemented ajax calls in index.html file