Reduce number of calls to setView()