select correct layout