Adding view struct to grammar pages