integrate progress bar with estimote proximity code