Added function to create dropdown