added selected class but only one at a time