Page level classes are removed on route change.

When chaning page remove the previous page level class in both pages and
add the new one.