optimize for hide gridview