add class page & change needed codes