Set up structure for calling function on WebUI page hits.