add resize function for setting pane height with js