Added window resizing and dynamic map loading