store the gui per-frame stuff in locals