Model office CP login - put functions into widget object scope.