viewWillAppear method reloads the data in the pet table every time user goes back to view