view properly working