can you change to $name == 'EDIT', this is the way we do it ;-)