Added ability to init a panel with user classes