changes in hdialpicker to support loops