moved config to view