migrate to jinja2
fix iphone css
fix layout