Better solution for views