add code to edit of pubishType