Handled show/hide grid when accordion change