add dialog and setting behave