on table make sure to remember selection state
manage cancel & ok buttons