ajax link for user profile link
fix error in javascript when page doesn't have any component