move program html into template and separate from python