added a better way to manage ui defaults