edit method for selector