asigning variable to class in web mode