moved set_slug into callback