add time and rewind functionality