Added basic callbacks for page loading