better page switching, added story class