added ability to customize grid class