added the index function to the controllers and created v_posts_index