small refactoring in addon_selection_dialog