fixing the multiple views problem