set the main frame location