added profile display functionality