Add index template and handle POSTs