made view actually work