added panel rotation