added code that will delete the created party, but is commented out becouse it needs to acces the delete button to work