pin dialog working