Mainpage device collapse toggle bugfix