Implemented proper tablegrid