Add click listener handling to "view". May genericise this.