views: cleaner logic

refs #13905