setup options save functionality