Create view for index