updating links and layout