functionality to show table grid