Add functionality for multiple views