Added support for providing current page as a parameter to UI.Menu. Solves issue #251