refactor admin Form library extensions so that functionality is retained when forms are used on non-post pages