code cleanup creating initial grid frame