add mail controller
fixed main controller conflict