user profile: update to current schema; layout for visibility restrictions; format js code for better readability