change stings to prev and next for pagination