Delete dead code
Fix bug where event handlers get removed. Make sure to readd them

Readd them whenever the view is rendered.