Resized the windows and fixed last seg fault