refine post new and edit form