resizing events and handling the Fit To WIndow menu