Fix option parsing and widget init