view fix some bugs