Reintroducing active_page_class.

This reverts commit 3af6ef2981c85dbf31081b9e2361cda880fbaf5e.