resolved view problem
add api and mailer