Finished viewProfiles.php

It is now fully functional