cleaned up save action for configuration