[client] Add "userProfile" argument to each views to avoid referring a global variable