Adding show and hide functionality to table.