Fixed issues with resizing the webpage