instead, factor out the data (items, a selected item, etc) and use those throughout the program. a first order refactor can bring these member fields accruing at the top of the file into a separate object that can be shared through CDI (context dependency injection)