make it more object oriented give user grid setting options