Refactored the GridView into its own class.