derive menu of webpage automatically