sample for floating view, with dragging and clicking enabled