Added Next and Previous button code