views refact