refactory views