close layout if no game