add navigation for prev or next.
update updates layout.