change reference app to do both ranging and monitoring in Application