Bug 1031196 - Improve Display for Profile Details Page

This version of Profile Details page looks better.
Please fix the indenting here so that everything is indented inside the `if` statement.