implemented link and unlink tasks to timer