restructured the way we build profile view, this fixes #8