change attributes var initalizion in form creation functions