refactor post form view