close link and make headers and option