implemented a tracker function for the app