fix
refactors code making generic fragment and adapter