Fixes to the ui/php communication.