Fix the taskbar so that signals for opening and closing windows are received properly and buttons appear and disappear