adding the settings functionality