pixel grid and clear button functional