adds links and options