polished code after last commit connected with new userpanel message types