panel logic