refactoring : rendering a partial form