added function to display current position and remaining time