add common field and function save post