Added the id of first level object as the class attribute of ul tag