added modals, added email feature (still buggy but works)