implemented basic index function, updated html templates for others