moving index tables to html partials