implemented cancel button that resets changes made to the settings