some refacotoring in the layout fragment classes