changed styles and init process of gridLayouter.