refactoring sub project panel rotation