Added multiple views and base javascript