Migrated usage of session variables and table IDs to reactive variables and DOM elements.