Added initial data logic for listing switches