added cleanup for the show pets view