sessions instead of janky global variables in views