simplfied view widget, removed tmpl class
added get method for view widget to recive varibale value
added test for view widget