Widget creation and position