moved grid display to instance variable