adds UI drag functionality