copied files from WebNoteSinglePage, work in progress