Updating more files to render profile pages correctly. Work in progress