added the bind functionality so that when adding an animal, it displays immediately on the webpage