Added discard item button and functionality. Updated records and task tree.