fixing the screensize issue