change countdown to a directive