Added delete case function and grid option factory