Update PTable and support classes

Different Selection Modes do now work for PTables.
Changing the model during runtime does now update the table selection.