refactored index, removed server side templates