changing sidebar into top panel