added save feature for options