added code to popular item view