set up proper grid framework