optimization for views loading