added jquery to gen grid and create tab func