adjusting view with products index and category index