setting up select listeners