Fixed log UI
Added payload/1 function to prolog API to allow direct write to payload text field.