added functionality to add second level items within first level