Modeling the mechanics and the transport phenomena in hydrogels