r button now returns you to bookmarked page, also refactored and commented