added ability to not show popup when there is only one object in dropdown menu