finish webpage functionality