added a rails toggle class in order to make mongodb work