Changed most of the nested accordion code