change bottom panel to a window
refactor