email controller (not finish)