Created generic widget for showing tables