4.2 fix sidebar bug

Fixed a sidebar manager bug. A user can now right click sidebar elements in the sidebar manager, choose "remove" and save the sidebar. Before this, clicking the element that was to be removed simply reappeared upon save.