Minor modifications to the addWidget system