dealing with changes to screen resolution