extract helper methods for item view