Set type of item from item view