change class prev to previous