Save currentPage to app.

Shouldn't we have something like this?