Refactore form post to partial