fix indentation and remove useless didInsertElement