Updated DialogFactory and bug fixexs

add listview dialog