Refactor page designer

- Remove WidgetStateItem
- Load attributes on started
- Refactor frequently used apis