[SPARK-4920][UI]: back port the PR-3763 to branch 1.1