handle index.html and POST demo