improve router; make imtables work inside an iframe