modify to modal window and close when link is clicked
remove useless code