Updated sample app for settings update

Updated sample app for dynamic settings update
remove commented code