abstracted further and made appending to a dropdown select optional