Transport properties of graphene functionalized with molecular switches