move links to base, attache them to resourceBase and adjust the logic to make it work