add 'previous' and 'next' buttons