added cancel to copy and delete functionality
fixed search plan error