fixed "need to specify target" error when attempting to edit a post
further fixed editing issues