added functioanlity to the next and back buttos while refactoring some css and html
removing console.log