improved dragging behavior, need to improve resize