Ensure old views are removed, fix event names for safari.

Closes #4