Switching between views. Currently Bar hides / shows buttons depending on which view is active. Think if maybe active / de active instead of show / hide.
Solution based on customEvents handling (own pure implementation)