Only change the UI file where needed

Refs #10368