add new message dialog sample