first panel functionality