Don't change the selected attribute 2 times when using select()... Also, added unselect()