created html generator for index and show functions