Added support for multiple widgets

- Added support for multiple widgets with different contents
- Overall layout fixes
- Some bugfixes