show remain time and make get information from url a function