move getview function