fix secret import in view