removed unused margin code
some new changes to fragments