Refactors all toolbar resizing logic