Enhanced to use the customized views to change painting settings.