finished prototype drag functionality