Update view.php

bug fix