remove useless chunk of code of the form widget