Make FormPane class independent from gf package