next previous buttons simple function has been added