fix javascript
clean up views
working mailer