Added $key parameter to several methods in grid view.