Fix dashboard create and update code snippets