added jquery and fixed grids