added profile view functionality