refarctoring twopane
rename twopane to panel