convert profile display into fragment