add grid property to the view template