reRendering function in personView.js