change the bootstrap dropdowns based on the selected part
only enable actions when it is allowed