drag placed segment functionality added