added mail popup support