click on class in spinner sets string url to the id of the class