added drag functionality to panel