get view type
bug