Introduce dialog functions and listview function.