finished dynamic gridlines