added control panel functionality