Creating the view for item and main.