added support for variants on pages