add duration function to web, add tip to web