remove the expanded class in all cases