Removing useless code from formbuilder