added index page table, finish reg controller