added popups with send mail logic