adding view item functions