switch only works at large size. Need to fix or perhaps use javascript