frontend bugs fixed, added some email alerts