change fragment classes into independent files