modified right panel, now has a close button, trying to draw devices on the image