Added panel code