Replaced JavaScript alerts with toasts, dialogs, and divs. Switched formatting to four spaces instead of tabs.