added cach and extract vars for views files