theme switch and session record