Add magic code for links and header