perl: use html templates
small fixes