Dashboard: Refactor search/replace implementation

refs #4537