views attr method for multiple views