Fix for #7: update active link dynamically