Attached modals to ChatSession and main.js