add minimize & close button to tables