preload in grid app function