code for populating drop input select