Merge pull request #9 from menghaoranss/refactor-instance

Refactor update instance status