add close button to repl and test panels