Adding trash and deleting functionalities