Added "next" and "previous" buttons