added helper to remove the empty pal dropdowns