move percentage computation to after everything has loaded