fixed the toolbar getting out of the window