Refactored page/link dispatching