fixing screen resize issues