layout and queue