introduce function 'pageDisabled()'; also introduce fixes suggested by Angular UI