Added window resizing callbacks etc