Create settings-menu-mixin for subview state tracking

Ref #4642
- Move duplicate code from PSM and SettingsTags to a mixin
Merge pull request #4643 from novaugust/settings-menu-mixin

Create settings-menu-mixin for subview state tracking