fixed widget initialization order
closes #1