add layout to window