implementing view profile