Layout modal support.