adjust jquery and layout