move templates to index.hml
improve responsiveness