Link the file monitor with monitor handler