added multi level dropdown support