fixed methods to make form partial work