Added discard of item and started on undo on front end