Added drag to pan support and UI changes