Make macro handler refresh when macro is edited