update markdown
register window listener