enhaning grid with pagination