Extension refactored as pageAction
Minor bug fixed.