fetch gifts on loading
update codes api function added.