Moved some requests to ajax call