Extracting UI_PARAMS && whitespace formatting

cc @sseago