replaced most alerts with popups, for UX