Added onDomRefresh view method snippet.