Added functionality for editing and deleting pets and owners