added more functionality to gridview