added resource support for panels