moved onItemClick switching of hierarchies to its own function for callback functionailty for long-running intermediate functions for certain cards