Added conditional selection to jstree to prevent selection of different
types simultaneously