Tweak document UI a bit.