add preloader (queryloader2) and fix some bugs