code factorization
set panel position:fixed