Added optional naming to switch widget on and off