Functionalization of chitosan polymer and their applications