fixed issue when displaying view.html