[Alex/Raphael] refactoring in dropdown populating functions