changed length of panel
fixed width problem of the panel