made it so the tables are locked in the selected patient pane