added delete function to GridView