[webui] fix proxy_mode simulate
[webui] change user_with_realname_and_icon partial into a function