added button functions to settings