Implementation of creating widgets changed