Moved grid initialization code to gridView file