[view] removed unnecessary code