Fix bug causing double rendering of main page views

Also fix event binding on search result drawing