viewport becomes class