implemented contacts loading and unloading