function to build import button