fixed bug in overlay resizeHandler and added set-position event