Center main frame on screen