fixed display toggle issue

fixed bug with collapse as toggle panel