remake the time selector plugin