Added functionality to render multiple views and other functionality