dialog can be initialized