Added panel functionality