Clearing method declaration
Re-factoring Grid code, adding option to pan the grid.