Added option to enable/disable gridview