get view number automatically