next-buttons implementation