Create current_controller helper to properly test whether pages controll...

...er