Optimization of urls

prevent load the whole HTML 3 times, just use the ajax calls