add code blocks to grid page