fix errors and adjust params fir resizeable HTML panel