Fire the right relay when the open function called