Update setSwitchOn method

invalidate state of thumb image