Updated sidebar panel collapse to have a switch