Add viewport configuration to grid