added "Apply and Restart" button to preferences