SPARK-1291: Link the spark UI to RM ui in yarn-client mode

There are differences in the code.Should not be combined.