ModuleView: Improve code for header updates
Clean-up and refactor around updatePageIconHeader() method and uses. By moving the header logic into this method, we reduce some duplicity present in different codepaths and make it less bug-prone, specially on IconView. CCBUG: 432093