added onresize callback. forgot it was disconnected...