ui_dropdown: removed html inside php loops and used echo