Updated sample app for settings update

Updated sample app for dynamic settings update