add selected class to a li