added grid and fixed problems in httprequest