minor fixes in view profile func