added timer class to handle server side remaining time persistence