for later reference
extract function to delay an action until a stack tab is shown
Implement setting element heights for proper scrolling