Updated with major optimisation changes. Now, the view will be rendered on click.