add allowed hosts and close task button