add lifecycle events for setting create/update
Merge pull request #8 from immersivelabs/feature/mapping

add lifecycle events for setting create/update