Rewrite the options page to fix #243