copy code to new fragments, add frag layouts