add custom dialog sample