Add onresize and onresized event hander - #145