Update on the toolbar resizing function.