Fixed bug in pinned a location and cycle through pages. Added comments like a good dev.