Adding logic structure of panel