refactor profile page parsing