add dialog inteface

Signed-off-by: hancong03 <hancong03@gmail.com>