handle link in popup page