add setting of variable to views