changed hook save_post to pre_post_update to fix bug that prevented options being saved in some cases