Fixed problem with trash not working. Needed a new canDelete function.