adding loading option for switcher