added option to save device settings