refactor issue create and update functionality