added time elapsed and remaining logic to the panel