remove completed item function