fix some minor bug of view detail