added grid and mainCanvas