Edited fragments and also attached it to main fragment

Edited fragments and also attached it to main fragment