documentwatcher works well, now the user interface part