forward and back page functionality added to j, k, B