monitor: Port handler_5 to use QDict