Add target option on popup creation