Now toggle grid works fine