better live reload
added function to draw the grid