create a widget in panel; problem with PDF