add dependency on contextual.
avoid modifying contextual links when user can't see them.
make code more readable.