fixed bugs regarding percentage & selected indexpath