fixing bug in dash board view count