Adding the feature to change the row of widget