changed selected to change on mouse click