Added functionality to track page buttons