Add Apply button to preferences dialog