bugfix the selectionInfoPanel and added new variables for handling