restore lost change of renaming didInsertElement function