Enabling the loops to fill out select boxes