change add class to .php and remove duplicate files