Make profile and survey pages dynamic