Page stack functionality.
Page stack implementation.