refatory na class View