Added promise to page:done event