I replaced a ceiling fan with another type of overhead light. I wired the three whites and three blacks in the ceiling to the white and black leads on the light fixture. There is also a red wire which I capped and a ground that I connected to a green ground wire on the light fixtre. Lights work great, but I can't shut them off at the switch. Any suggestions?